<?php session_start(); ?>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>Jquery AJAX Contact Form With PHP</title>
    <link rel="stylesheet" type="text/css" href="css/reset.css" media="all">
    <link rel="stylesheet" type="text/css" href="css/style.css" media="all">
    <script type="text/javascript" src="js/jquery.1.7.2.js"></script>
    <script type="text/javascript" src="js/AJAX.js"></script>
</head>
<body>
<div id="wrapper">
    <div id="container"><h1>Jquery AJAX Contact Form With PHP<span class="arrow"></span></h1>

        <div id="loading"></div>
        <form action="setup.php" method="POST">
            <div id="success">Thanks your contact me !!!</div>
            <div id="error">Error !!! Can not sending Email.</div>
            <p><input type="text" id="name" name="name" placeholder="Please insert your Name">

            <div class="warning" id="nameError">Vui lòng nhập tên của bạn</div>
            </p> <p><input type="email" id="email" name="email" placeholder="Please insert your Email">

            <div class="warning" id="emailError">Email không hợp lệ</div>
            </p> <p><input type="url" id="website" name="website" placeholder="Please insert your Website">

            <div class="warning" id="websiteError">Vui lòng nhập Website của bạn</div>
            </p> <p><input type="text" id="subject" name="subject" placeholder="Please insert your Subject">

            <div class="warning" id="subjectError">Vui lòng nhập tiêu đề</div>
            </p> <p><textarea id="content" name="content" placeholder="Please insert your Message"
                    ></textarea>

            <div class="warning" id="contentError">Vui lòng nhập nội dung</div>
            </p> <p><input type="text" id="captcha" name="captcha" placeholder="Please insert Captcha"
                           alt="Security Code"/> <img src="captcha.php" id="img_captcha"/> <img src="images/load.png"
                                                                                                id="load_captcha"/>

            <div class="warning" id="captchaError">Vui lòng nhập Captcha</div>
            </p> <p><input type="submit" id="SendMail" value="Send Mail"></p></form>
    </div>
    <!-- End #container --> </div>
<!-- End #wrapper -->
</body>
</html>